import request from '/@/utils/request';

//故事版文件api

export function storyApi(){
    return{
        //获取当前作业的状态
		getStoryState: (data?: object) => {
			return request({
				url: '/homework/getStoryState',
				method: 'post',
				data,
			});
		},
        //根据作业id和学生id去获取对应学生的作业
		getAllStory: (data?: object) => {
			return request({
				url: '/storyboardfiles/getAllStory',
				method: 'post',
				data,
			});
		},
        //删除上传的作业
			deleteUrl: (data?: object) => {
                return request({
                    url: '/storyboardfiles/deleteUrl',
                    method: 'delete',
                    data,
                });
            },
//审核

            //审核处：根据作业id去获取所有学生的本次提交的作业
			getStory: (data?: object) => {
				return request({
					url: '/storyboardfiles/getStory',
					method: 'post',
					data,
				});
			},

          //审核员对学生作业状态审核
			updatesctate: (data?: object) => {
				return request({
					url: '/storyboardfiles/updateState',
					method: 'post',
					data,
				});
			},
    }
}